package com.sgcc.fj.pmos.common.utils;

public class EnumUtils {

    public static String getGreenLeft(String constrRel) {
        //解约条件（ 1 用户无条件解约 ，2用户有条件解约 ，3不可解约 ，4 经双方确认解约）
        String result = "";
        switch (constrRel) {
            case "1":
                result = "无条件解约";
                break;
            case "2":
                result = "单方解约";
                break;
            case "3":
                result = "不可解约";
                break;
            case "4":
                result = "双方协商解约";
                break;
            default:
                result = "";
                break;
        }
        return result;
    }

    public static String getGreenCenter(String constrMod) {
        return "1".equals(constrMod) ? "量价变更" : "不可变更";
    }

    public static String getGreenRight(String constrBarg) {
        return "1".equals(constrBarg) ? "可议价" : "不可议价";
    }

    public static String getConstrMin(String s) {
        String result = "";
        switch (s) {
            case "01":
                result = "自然月";
                break;
            case "02":
                result = "自然季";
                break;
            case "03":
                result = "自然年";
                break;
            case "04":
                result = "全部可购买月份";
                break;
        }
        return result;
    }
}
